<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<link rel="stylesheet" href="jquery-easyui-1.4/themes/icon.css" type="text/css"></link>
  <link rel="stylesheet" 	href="jquery-easyui-1.4/themes/default/easyui.css" type="text/css"></link>
   <link rel="stylesheet" 	href="css/global.css" type="text/css"></link>
  <script type="text/javascript" src="jquery-easyui-1.4/jquery.min.js"></script>
  <script type="text/javascript" src="jquery-easyui-1.4/locale/easyui-lang-zh_CN.js"></script>
  <script type="text/javascript" src="jquery-easyui-1.4/jquery.easyui.min.js"></script>
  <script type="text/javascript" src="admin/user/userList.js"></script>
   <script type="text/javascript" src="js/formatStrToDate.js"></script>
  </head>
  <body>
  		<table id="dg"></table> 
  		
  		<div id="tb">
			<a href="javascript:add();" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
			<a href="javascript:edit();" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
			<a href="javascript:del();" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
			<a href="javascript:resetPwd();" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">重置密码</a>
			<a href="javascript:freezeAccount();" class="easyui-linkbutton" data-options="iconCls:'icon-lockaccount',plain:true">帐号冻结</a>
			<a href="javascript:depositConfirm();" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">积分充值确认</a>
			<a href="javascript:distributionRole();" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">分配角色</a>
		</div>
  		
  		<!-- 新增和修改对话框 -->
		<div id="dlg" class="easyui-dialog" style="width: 420px;height: 420px;padding-left: 20px;"
		  closed="true" buttons="#dlg-buttons">
		 <form id="fm" method="post">
		 	<table cellspacing="5px;">
		  		<tr>
		  			<td>用户名：</td>
		  			<td><input type="text" style="width: 240px;" id="username" name="username" class="easyui-validatebox" /></td>
		  		</tr>
		  		<tr>
		  			<td>密码：</td>
		  			<td><input type="text" style="width: 240px;" id="password" name="password" class="easyui-validatebox" /></td>
		  		</tr>
		  		<tr>
		  			<td>昵称：</td>
		  			<td><input type="text" style="width: 240px;" id="chName" name="chName" class="easyui-validatebox" /></td>
		  		</tr>
		  		<tr>
		  			<td>手机号：</td>
		  			<td><input type="text" style="width: 240px;" id="mobile" name="mobile" class="easyui-validatebox" /></td>
		  		</tr>
		  		<tr>
		  			<td>邮箱：</td>
		  			<td><input type="text" style="width: 240px;" id="email" name="email" class="easyui-validatebox" /></td>
		  		</tr>
		  		<tr>
		  			<td valign="top">备注：</td>
		  			<td colspan="4">
		  				<textarea rows="4" cols="27" name="description" id="description"></textarea>
		  			</td>
		  		</tr>
		  	</table>
		 </form>
		</div>
		<div id="dlg-buttons" style="text-align:center">
			<a href="javascript:saveOrEdit();" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
			<a href="javascript:closeDialog();" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
		</div>
		
		<!-- 用户角色界面 -->
		<div id="dlg-userRole" class="easyui-dialog" style="width: 400px;height: 200px;padding-left: 20px;"
		  closed="true" buttons="#dlg-userRole-buttons">
		 <form id="fm-userRole" method="post">
		 <table  id="roles">
		 </table>
		 </form>
		</div>
		<div id="dlg-userRole-buttons" style="text-align:center">
			<a href="javascript:saveOrEditMenu();" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
			<a href="javascript:closeMenuDialog();" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
		</div>
  		
  </body>
</html>
